﻿<%@ page contentType="text/html;charset=utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="/include_head.jsp"%>

<table border="1" align="center">
<caption><h2>题目列表</h2>
共${requestScope.recordCount}条，共${requestScope.pageCount}页 第${requestScope.currentPageNo}页
<s:property value="currentPageNo"/>
<s:if test="currentPageNo>1">
      <a href="problemList.action?currentPageNo=1">首页</a>
      <a href="problemList.action?currentPageNo=${currentPageNo-1}">上一页</a>
</s:if>
<s:if test="currentPageNo<#request.pageCount">
      <a href="problemList.action?currentPageNo=${currentPageNo+1}">下一页</a>
      <a href="problemList.action?currentPageNo=${requestScope.pageCount}">尾页</a>
</s:if>	

</caption>
       <tr>
            <th>problemId</th>
            <th>title</th> 
            <th>createDate</th> 
            <th>timeLimit</th> 
            <th>memoryLimit</th> 
       </tr>
       <s:iterator value="#request.problemList" id="problem">
       <tr>
            <td><s:property value="#problem.problemId"/></td>
            <td><a href="problem.action?problemId=${problem.problemId}"><s:property value="#problem.title"/>
                </a> —— <s:property value="#problem.source"/>
            </td>
            <td><s:property value="#problem.createDate"/></td>
            <td><s:property value="#problem.timeLimit"/></td>
            <td><s:property value="#problem.memoryLimit"/></td>
       </tr>
       </s:iterator>
</table>


<%@ include file="/include_end.jsp"%>